import React from 'react'
import {
  BrowserRouter as Router,
  Route
} from 'react-router-dom'
import Hello from './Hello'
import configureStore from './configureStore'
import { Provider } from 'react-redux'

const store = configureStore()

const Home = () => (
  <div>
    <h2>Home</h2>
  </div>
)

const BasicExample = () => (
  <Provider store={store}>
    <Router>
      <div>
        <Route exact path="/" component={Home}/>
        <Route path="/hello" component={Hello}/>
      </div>
    </Router>
  </Provider>
)
export default BasicExample
